﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.Model.CSPBBS;

namespace CSP.Dao.IObjectDaos.CSPBBS
{
    public interface ICommonMemberDao : ICSPDao<CommonMember>
    {
        /// <summary>
        /// 根据用户名密码获取数据
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        CommonMember GetInfoByUidAndPwd(string uid, string pwd);

        /// <summary>
        /// 根据用户名获取基本信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns></returns>
        CommonMember GetInfoByUserName(string userName);

        /// <summary>
        /// 查询用户是否存在
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        bool IsExsitByUserName(string userName);

    }
}
